<td colspan="9" class="one_row_actions">
<div class="h_actions_wrap">
  <ul class="sf_admin_td_actions">
    <?php if ($sf_user->hasCredential('SYSTEM_ADMIN')): ?>
        <?php echo $helper->linkToEdit($program, array(  'credentials' => 'SYSTEM_ADMIN',  'params' =>   array(  ),  'class_suffix' => 'edit',  'label' => 'Edit',)) ?>
    <?php endif; ?>
      
    <li class="sf_admin_action_show">
      <?php if ($sf_user->hasCredential('SUPERVISOR_ADMIN')): ?>
<?php echo link_to(__('Show', array(), 'messages'), 'program/ListShow?id='.$program->getId(), array()) ?>
<?php endif; ?>

        </li>
      

    <?php if ($sf_user->hasCredential('SYSTEM_ADMIN')): ?>
        <?php echo $helper->linkToDelete($program, array(  'credentials' => 'SYSTEM_ADMIN',  'params' =>   array(  ),  'confirm' => 'Are you sure?',  'class_suffix' => 'delete',  'label' => 'Delete',)) ?>
    <?php endif; ?>
    <li class="sf_admin_action_assignment_list">
      <?php echo link_to(__('Program Assignments', array(), 'messages'), 'program/assignments?id='.$program->getId(), array()) ?>
    </li>
    <li class="sf_admin_action_attendance">
      <?php echo link_to(__('Teachers Attendance Sheet', array(), 'messages'), 'program/attendance?id='.$program->getId(), array()) ?>
    </li>
    <li class="sf_admin_action_attendance_fill">
      <?php echo link_to(__('Teachers Attendance Fill', array(), 'messages'), 'program/attendanceFill?id='.$program->getId(), array()) ?>
    </li>
    <li class="sf_admin_action_assigned_teachers">
      <?php echo link_to(__('List Approved Teachers', array(), 'messages'), 'program/listTeachers?id='.$program->getId(), array()) ?>
    </li>
    <li class="sf_admin_action_certificates">
      <?php echo link_to(__('Certificates', array(), 'messages'), 'program/certificates?id='.$program->getId(), array()) ?>
    </li>

    <?php if ($sf_user->hasCredential('SYSTEM_ADMIN')): ?>
    <li class="sf_admin_action_sendconfirmsms">
	  <?php if(!$program->getIsApprovalSent()){?>
			<?php echo link_to(__('Send Confirm SMS', array(), 'messages'), 'program/sendConfirmSms?id='.$program->getId(), array()) ?>
	  <?php }else{?>
			<?php echo __('Approval already sent')?>
	  <?php }?>
    </li>
    <li class="sf_admin_action_sendcustom">
       <a href="#" onclick="window.open('<?php echo url_for('program/sendCustomSms?id='.$program->getId())?>', 'programSmsWindow', 'scrollbars=auto,toolbar=no,menubar=no,status=no,width=600,height=600'); return false;"><?php echo __('Send Sms to Teachers')?></a>
    </li>
    <?php endif; ?>
    
  </ul>
</div>
</td>
